package com.cn.jinl.dao;

import com.cn.jinl.domain.FileInfo;
import com.cn.jinl.domain.FileInfoExample;
import com.cn.jinl.utils.QueryForm;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FileInfoMapper {
    int countByExample(FileInfoExample example);

    int deleteByExample(FileInfoExample example);

    int insert(FileInfo record);

    int insertSelective(FileInfo record);

    int batchInsertFiles(@Param("itemList") List<FileInfo> records);

    List<FileInfo> selectByExample(FileInfoExample example);

    int updateByExampleSelective(@Param("record") FileInfo record, @Param("example") FileInfoExample example);

    int updateByExample(@Param("record") FileInfo record, @Param("example") FileInfoExample example);

    int batchUpdateFileCheckStatus(List<FileInfo> fileInfos) throws Exception;

    List<FileInfo> selectFileByRelateId(QueryForm queryForm) throws Exception;
}
